import { LikeDto } from "@/interface/like";
import request from "@/utils/axios";

export function starSomething(data: LikeDto): Promise<any> {
  return request({
    url: "/star/add",
    method: "post",
    data
  });
}

export function unstarSomething(data:{createId: number, type: number, id: number}): Promise<any> {
  return request({
    url: '/star/del',
    method: "post",
    data
  });
}

export function findStarTotal(): Promise<any> {
  return request({
    url: '/star/queryStarTotal',
    method: 'post'
  })
}


